package org.zk.dubbo.provider.controller;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.zk.dubbo.provider.service.UserService;

public class TestDubbo {
//	@SuppressWarnings("resource")
	public static void main(String[] args) throws IOException { 
		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] {"remote-provider.xml"});
		ctx.start();
		UserService userService = (UserService) ctx.getBean("userService");
		System.out.println(userService.getUserList().size());
		System.in.read();
	}

}
